<?php

namespace App\Http\Requests\Common;

use Illuminate\Foundation\Http\FormRequest;

class NoteStoreRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules(): array
    {
        return [
            'title' => 'bail|nullable|string',
            'questionId' => 'bail|required|integer',
            'content' => 'bail|required|string',
        ];
    }
}
